import { parseInt } from 'core-js'
import { Message, MessageBox } from 'element-ui'
const $message = {}

const util = {
  $message,
  defaultDeptId: 9999999 // 默认高速集团
}

$message.showInfo = function (msg) {
  MessageBox.alert(msg, '信息', {
    confirmButtonText: '确定',
    modal: false,
    type: 'info'
  })
}


/**
 * 判空
 * @param {} val 
 */
util.isNotEmpty = function(val) {
  return val != null && val != undefined && val !== ''
}

/**
 * list判空
 */
util.listNotEmpty = function (list) {
  return list != null && list != undefined && list.length > 0
}

export default util